package com.my.study.springframework.context;

import java.util.EventListener;

/**
 * 事件监听者
 *
 * @author: yidujun
 * @create: 2021/07/12 19:38
 */
@FunctionalInterface
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {

    /**
     * Handle an application event.
     * @param event the event to respond to
     */
    void onApplicationEvent(E event);

}
